package processor.impl;

import java.util.Comparator;
import java.util.List;
import java.util.Set;

import analyser.DataAnalyser;
import analyser.impl.DataAnalyserImpl;
import entity.Customer;
import processor.DataHandler;

public class DataHandlerImpl implements DataHandler {
	private DataAnalyser analyser;

	public DataHandlerImpl(List<Customer> list) {
		analyser = new DataAnalyserImpl(list);
	}

	public Set<Customer> process(Comparator<Customer> comp) {
		Set<Customer> set = analyser.analyse(comp);

		return set;
	}

}
